package br.open.yiori.chars.yiori;

import br.open.yiori.filetypes.CNS;

public class Yiori_h extends CNS
{
	public void state666()
	{
		Type(S);
		MoveType(A);
		Physics(S);
		Ctrl(false);
		Anim(666);
		PowerSet(0);
		VarSet(27, 1);
		if (time > 0)
			VelSet(0, 0);
		if (time > 0)
			BGPalFx(ignoreHitPause(true), supermove(true), time(2), add(358, 44, 44), mul(113, 0, 0), intertall(1));
		if (time == 0)
			StopSnd(2);
		if (animelem == 8 || animelem == 11 || animelem == 14 || animelem == 17 || animelem == 20 || animelem == 23)
			PlaySnd(70,0);
		if (animelem == 29 || animelem == 71 || animelem == 81)
			PlaySnd(70,1);
		if (animelem == 36)
			PlaySnd(100,10);
		if (animelem == 38 || animelem == 42 || animelem == 46 || animelem == 50 || animelem == 53 || animelem == 57 || animelem == 61 )
			PlaySnd(40,5);
		if (animelem == 8  || animelem == 11 || animelem == 14 || animelem == 17 || animelem == 20 || animelem == 23 || animelem == 30 ||
			animelem == 38 || animelem == 41 || animelem == 45 || animelem == 49 || animelem == 53 || animelem == 57 || animelem == 61 ||
			animelem == 71 || animelem == 81 || animelem == 91)
		{
			TargetLifeAdd(-32 - var(19), null, kill(false));
			HitAdd(1);
			TargetPowerAdd(10);
		}
		if (animelem == 38 || animelem == 45 || animelem == 53 || animelem == 61)
		{
			Explod(6104, persistent(true), pos(30, -30), postype(p1), sprpriority(9), bindtime(-1), ignorehitpause(true), supermove(true), owpal(true));
			Explod(6108, persistent(true), pos(-5, -30), postype(p1), sprpriority(9), bindtime(-1), ignorehitpause(true), supermove(true), owpal(true));
		}
		if (animelem == 89)
			PlaySnd(70, 2);
		if (animelem == 1)
			TargetBind(15.0, 0.0);
		if (animelem == 2)
			TargetBind(5.0, 0.0);
		if (animelem == 3)
			TargetBind(10.0, 0.0);
		if (animelem == 8  || animelem == 11 || animelem == 14 || animelem == 17 ||
			animelem == 20 || animelem == 23)
			EnvShake(5, 5.0, 5, null);
	}
}
